﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

public partial class templates_client_usercontrols_header : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {

            if (Application["langue"].ToString() == "vi")

            if (Application["language"].ToString()=="vi")

            {
                //btnVN.Visible = false;
               // btnEN.Visible = true;
            }
            else
            {
                //btnVN.Visible = true;
                //btnEN.Visible = false;
            }
        }
    }
    protected void btnVN_Click(object sender, ImageClickEventArgs e)
    {        
        //Application["langue"] = "vi";        
        //Response.Redirect("~/Default.aspx"); 
        //btnVN.Visible = false;

        Application["language"] = "vi";        
        //Response.Redirect("~/Default.aspx");
        //btnVN.Visible = false;
        Response.Redirect(Request.Url.AbsoluteUri); // nen su dung cau lenh nay, no se load lai chinh trang dang xem luon

    }
    protected void btnEN_Click(object sender, ImageClickEventArgs e)
    {
        Application["language"] = "en";         
        //Response.Redirect("~/Default.aspx");
       // btnEN.Visible = false;
        Response.Redirect(Request.Url.AbsoluteUri);
    }
}
